home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
v cisle
/
diff
/
diffcmdu_bundle.exe
/
{app}
/
ExtTools
/
ImageViewer
/
scripts.js
< prev
Wrap
Text File
|
2005-04-17
|
1KB
|
73 lines
function getParam(sParamName)
{
var sUnEscaped = unescape(location.search);
var Params = sUnEscaped.substring(1).split("&");
var variable = "";
for (var i = 0; i < Params.length; i++)
{
if (Params[i].split("=")[0] == sParamName)
{
if (Params[i].split("=").length > 1)
variable = Params[i].split("=")[1];
return variable;
}
}
return "";
}
function getCmdParam(sCmdLine)
{
var sUnEscaped = unescape(sCmdLine);
var Params = sUnEscaped.substring(1).split(".hta");
var Pathes;
if ( Params.length > 0)
{
var re = new RegExp("\\\"\\s*\\\"?");
var sParams= Params[1];
sParams += "\"";
Pathes= sParams.split(re);
return Pathes;
}
}
function SynchLeftScroll()
{
if (document.all)
{
// IE
x= document.body.scrollLeft;
y= document.body.scrollTop;
}
parent.leftpane.scrollTo(x,y);
}
function SynchRightScroll()
{
if (document.all)
{
// IE
x= document.body.scrollLeft;
y= document.body.scrollTop;
}
parent.rightpane.scrollTo(x,y);
}
function CloseByEsc()
{
if (event.keyCode == 27)
{
window.close();
}
}